package com.photonpay.api.response;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 卡充值
 *
 * @author ：lo-
 * @date ：Created in 2023/11/22 14:40
 */
@Data
public class RechargeResponse extends BaseResponse {

    private DataInfo data;

    @Data
    public static class DataInfo {

        /**
         * 到账金额
         */
        private BigDecimal arrivalAmount;

        /**
         * 到账金额币种
         */
        private String arrivalAmountCurrency;

        /**
         * 卡内余额
         */
        private BigDecimal cardBalance;

        /**
         * 卡ID
         */
        private String cardId;

        /**
         * 创建时间
         */
        private LocalDateTime createdAt;

        /**
         * 汇率
         */
        private BigDecimal exchangeRate;

        /**
         * 汇率合约ID
         */
        private String rateContractId;

        /**
         * 充值金额
         */
        private BigDecimal rechargeAmount;

        /**
         * 充值币种
         */
        private String rechargeCurrency;

        /**
         * 充值手续费
         */
        private BigDecimal rechargeFee;

        /**
         * 充值手续费币种
         */
        private String rechargeFeeCurrency;

        /**
         * 状态 (Enum: "failed", "succeed")
         */
        private String status;

        /**
         * 交易ID
         */
        private String transactionId;
    }
}
